
public class C2DAnimation 
{
	private float 	m_fTotalTime 	= 0f;
	private float 	m_fTimePerFrame = 0f;
	public int[]	m_frameIndexList; 
	
	C2DAnimation( float timePerFrame, int[] frameIndexList  )
	{
		m_fTimePerFrame		= timePerFrame;
		m_frameIndexList	= frameIndexList;
		
		m_fTotalTime = m_frameIndexList.Length * m_fTimePerFrame;
	}
	
	 ~C2DAnimation()
	{
		m_frameIndexList = null;
	}
	
	/// <summary> 
	/// Get the total duration of the animation
	/// </summary>
	public float GeTotaltDuration()
	{
		return m_fTotalTime;
	}
	
	/// <summary> 
	/// Get the time for one frame
	/// </summary>
	public float GetFrameDuration()
	{
		return m_fTimePerFrame;
	}
}
